package com.xjjj.service.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : 王泰元
 * @date : 2022/10/19 16:37
 */
@Api(tags = "测试接口")
@RestController
@RequestMapping("/admin")
public class TestController {

    @ApiOperation("测试接口 1 ")
    @GetMapping("/test")
    public String test( String s) {
        return "test";
    }

    @RequestMapping("/test2")
    public String test2(@RequestBody String s){
        return "test2";
    }
}
